import fs from "fs";
import yParser from "yargs-parser";
import changeEnvVariables from "../changeEnvVariables.js";

const args = yParser(process.argv.slice(2));
const cwd = process.cwd();

changeEnvVariables("VITE_APP_BUILD_SOURCE_MAP", args.source === "true");

if (!fs.existsSync(cwd + "/output")) {
  fs.mkdirSync(cwd + "/output");
}
